package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.HsCodeRespDto;
import com.cmc.cloud.cmclink.doc.api.document.req.HsCodeReqDto;
import com.cmc.cloud.cmclink.doc.service.HsCodeService;
import com.cmes.framework.common.pojo.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * hsCode信息查询
 *
 * @author lzp
 */

@RestController
@Validated
public class HsCodeApiImpl implements HsCodeQueryApi {

    @Resource
    private HsCodeService hsCodeService;


    @Override
    public CommonResult<List<HsCodeRespDto>> queryHsCodeInfo(HsCodeReqDto hsCodeReqDto) {
        return CommonResult.success(hsCodeService.queryHsCodeInfo(hsCodeReqDto));
    }
}
